package com.study.entity;

import java.util.Date;

public class User {
    private String id;
    private String name;
    private int age;
    private int sex;
    private String sexStr;
    private String email;
    private Date birthday;
    private String detail;
    private String pwd;

    public User() {
    }

    public User(String id, String name, int age, int sex, String sexStr, String email, Date birthday, String detail) {
        this.id = id;
        this.name = name;
        this.age = age;
        this.sex = sex;
        this.sexStr = sexStr;
        this.email = email;
        this.birthday = birthday;
        this.detail = detail;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public int getSex() {
        return sex;
    }

    public void setSex(int sex) {
        this.sex = sex;
    }

    public String getSexStr() {
        return sex==0?"女":"男";
    }

    public void setSexStr(String sexStr) {
        this.sexStr = sexStr;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    public String getDetail() {
        return detail;
    }

    public void setDetail(String detail) {
        this.detail = detail;
    }

    public String getPwd() {
        return pwd;
    }

    public void setPwd(String pwd) {
        this.pwd = pwd;
    }

    @Override
    public String toString() {
        return "User{" +
                "id='" + id + '\'' +
                ", name='" + name + '\'' +
                ", age=" + age +
                ", sex=" + sex +
                ", sexStr='" + sexStr + '\'' +
                ", email='" + email + '\'' +
                ", birthday=" + birthday +
                ", detail='" + detail + '\'' +
                ", pwd='" + pwd + '\'' +
                '}';
    }
}
